

import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;

/**
 * The test class BeamerTest.
 *
 * @author  (your name)
 * @version (a version number or a date)
 */
public class BeamerTest
{
    private Room currentRoom;
    private Room oldRoom;
    private Player THEDUDE;
    private Beamer beamer1;

    
    
    

    /**
     * Default constructor for test class BeamerTest
     */
    public BeamerTest()
    {
    }

    /**
     * Sets up the test fixture.
     *
     * Called before every test case method.
     */
    @Before
    public void setUp()
    {
        currentRoom = new Room("currentRoom");
        oldRoom = new Room("oldRoom");
        THEDUDE = new Player("THE DUDE!", 100, 100, 120, currentRoom);
        oldRoom.setExit("north", oldRoom);
        beamer1 = new Beamer("a", "a", 10, 0);
        THEDUDE.addToInventory(beamer1);
    }

    /**
     * Tears down the test fixture.
     *
     * Called after every test case method.
     */
    @After
    public void tearDown()
    {
    }

    @Test
    public void testBeamer()
    {
        beamer1.load(currentRoom);
        assertEquals(true, beamer1.isLoaded());
        assertNotNull(beamer1.getLoadedRoom());
    }
}

